import request from '@/libs/request';
// 服务信息列表
export function serviceListApi(params) {
  return request({
    url: 'shop/service_list',
    method: 'get',
    params
  });
}

// 服务信息保存
export function serviceSaveApi(params) {
  return request({
    url:'shop/service_list',
    method:'post',
    data:params
  })
}

// 服务信息删除
export function serviceDelApi(id) {
  return request({
    url:`shop/service_list/${id}`,
    method:'delete',
  })
}

// 服务信息分类列表
export function serviceCategoryListApi(params) {
  return request({
    url: 'shop/service_category',
    method: 'get',
    params
  });
}

//  医生信息列表
export function doctorListApi(params) {
  return request({
    url: 'shop/doctor',
    method: 'get',
    params
  });
}

//  添加医生信息
export function doctorAddApi(params) {
  return request({
    url: 'shop/doctor',
    method: 'post',
    data: params
  });
}

//  删除医生信息
export function doctorDelApi(id) {
  return request({
    url: `shop/doctor/${id}`,
    method: 'delete'
  });
}

// 医生类型列表
export function doctorTypeListApi(params) {
  return request({
    url: 'shop/category',
    method: 'get',
    params
  });
}

//  确定关联服务
export function serviceRelationApi(params) {
  return request({
    url: 'shop/coach',
    method: 'post',
    data: params
  });
}

//  删除关联
export function serviceDelRelationApi(id) {
  return request({
    url: `shop/del_coach/${id}`,
    method: 'delete'
  });
}

//  关联服务列表
export function serviceRelationListApi(params) {
  return request({
    url: 'shop/coach_list',
    method: 'get',
    params
  });
}



